<template>
<div id="parent">
  <CommonHead child-name="添加疾病" father-name="医疗服务"></CommonHead>
  <div class="body">
    <div class="form">
      <el-form ref="form" :model="form" label-width="80px">
        <el-form-item label="疾病名称">
          <el-input v-model="form.name"></el-input>
        </el-form-item>
        <el-form-item label="科室">
          <el-select v-model="form.region" placeholder="一级科室">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
          <el-select v-model="form.region" placeholder="二级科室">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>

        <el-form-item label="描述">
          <el-input type="textarea" v-model="form.desc" ></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit">立即创建</el-button>
          <el-button>取消</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</div>
</template>

<script>
import CommonHead from "../../system/common/commonHead";
export default {
  name: "diseaseAdd",
  components: {CommonHead},
  data() {
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      }
    }
  },
  methods: {
    onSubmit() {
      console.log('submit!');
    }
  }
}
</script>

<style scoped>
#parent{
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)
}.body{
   background-color: #F0F2F5;
   padding-top: 15px;
   box-sizing: border-box;
 }
.form{
  background-color: white;
  width: 80%;
  margin: auto;
  padding-top: 30px;
  padding-bottom: 10px;
  box-sizing: border-box;
}
</style>
